package NguyenNgocHungBaiTapMVCPart02;

public class Models01 {

		public double AreaTriangle(Entity01 objTri){
			double p = (objTri.getSide1() + objTri.getSide2()+ objTri.getSide3())/2;
			double Area = Math.sqrt(p*(p - objTri.getSide1())*(p - objTri.getSide2())* (p- objTri.getSide3()));
			
			return Area;
		}
		double PrimeterTriangle(Entity01 objTri){
			double Pri = objTri.getSide1() + objTri.getSide2() + objTri.getSide3();
					
			return Pri;
		}

		
}
